import request from '@/utils/request'

// 查询拉力传感器列表
export function listPull(query) {
  return request({
    url: '/system/pull/list',
    method: 'get',
    params: query
  })
}

// 查询拉力传感器详细
export function getPull(pullId) {
  return request({
    url: '/system/pull/' + pullId,
    method: 'get'
  })
}

// 新增拉力传感器
export function addPull(data) {
  return request({
    url: '/system/pull',
    method: 'post',
    data: data
  })
}

// 修改拉力传感器
export function updatePull(data) {
  return request({
    url: '/system/pull',
    method: 'put',
    data: data
  })
}

// 删除拉力传感器
export function delPull(pullId) {
  return request({
    url: '/system/pull/' + pullId,
    method: 'delete'
  })
}
